import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-03-13
 * Time: 21:33
 */
public class test {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        float h=scanner.nextFloat();
        int n =scanner.nextInt();
        double hs = h;
        double ns = h;
        for (int i = 0; i < n; i++) {
            hs /= 2;
            if(i < n - 1 ){
                ns += (hs*2);
            }
        }
        System.out.printf("%.3f %.3f",hs,ns);
    }
    public static int getCM(int m,int n){
        int c = m > n ? m : n;
        while(c % m != 0 || c % n !=0){
            c++;
        }
        return c;
    }
    public static void main3(String[] args) {
        Scanner console = new Scanner(System.in);
        int m = console.nextInt();
        int n = console.nextInt();
        int result = getCM(m, n);
        System.out.println(result);
    }
    public static void main2(String[] args) {
        int count = 0;
        Scanner scanner = new Scanner(System.in);
        while(true){
            int n = scanner.nextInt();
            if(n > 0){
                count++;
            }else{
                break;
            }
        }
        System.out.println(count);
    }
    public static void main1(String[] args) {
        long num = 0;
        long sum = 0;
        for (int i = 0; i < 10; i++) {
            num += 9 * Math.pow(10,i);
            sum += num;
        }
        System.out.println(sum);

    }
    public static void main0(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        String emailMatcher="[a-zA-Z0-9]+@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+";

        if(str.matches(emailMatcher)){
            System.out.println("邮箱格式合法"); // str.matches() 方法用于检测字符串是否匹配给定的正则表达式
        }else{                               // 调用此方法的 str.matches(regex) 形式与以下表达式产生的结果完全相同
            System.out.println("邮箱格式不合法");
        }
    }
}
